package com.ayf.payment.game.api.service.platform;

import com.ayf.payment.game.api.dto.criteria.OrderInfoCriteria;
import com.ayf.payment.game.api.dto.platform.MerchantSettleDTO;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface MerchantSettleService{


    void inserts(List<MerchantSettleDTO> MerchantSettles, Map<Integer, MerchantSettleDTO> porxyMap);

    /**
     * 根据结算单号修改结算单状态
     * @param tradeNumber
     */
    void updateMerchantSettleStatuByTradeNumber(String tradeNumber, int settleStatus);
    /**
     * 查询商户结算汇总信息
     *
     * @param cri
     * @return
     */
    Map<Integer, Map<String, Object>> selectSumSettle(OrderInfoCriteria cri);

    @Transactional
    void daySettle(MerchantSettleDTO dto,Map<Integer, Map<String, Object>> withdrawalMap,Map<Integer, Map<String, Object>> payMap);

    int updateSettleAmtAndSettleStatusBySettleOrderNo(String settleOrderNo,BigDecimal settleAmt,Integer settleStatus);

    MerchantSettleDTO getMerchantSettleBySettleOrderNo(String settleOrderOn);

    void merchantSettleCreate(String settleDate);

}
